@(customer: Customer, genForm: Form[(Double)], budgets: Seq[(String, String)])

@import helper._
@import helper.Bootstrap3Helper._

@main(Some(customer)) {
  
  @customerBanner(customer)

    <fieldset>
        <legend>Generate Roadmap</legend>

        @if(genForm.hasErrors) {
          <div class="alert-message error">
              <p><strong>Oops</strong> Error occured </p>
              <dl>
                  @for(ferror <- genForm.errors) {
                      <dt>
                          Field: @ferror.key
                      </dt>
                      <dd>Message: @ferror.message</dd>
                  }
              </dl>
          </div>
        }

        @form(action = routes.Roadmaps.generate(customer.id.get), args = 'id -> "generateForm", 'class -> "form-horizontal") {
            <input type="hidden" name="id" value='@genForm("id").value' />
            @select(
                genForm("budget"), 
                options = budgets,
                '_label -> "Budget",
                '_showConstraints -> false
            )

          <div class="form-group">
            <div class="col-sm-offset-2 col-sm-10">
              <button type="submit" class="btn btn-default">Generate</button>
            </div>
          </div>
        }
    </fieldset>
}
